package com.design.model;

/**
 * 图形
 *
 * @author lw
 * @date 2023/12/1 14:46
 **/
public class Shape implements Cloneable {

    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Shape(String type) {
        this.type = type;
    }

    @Override
    public Shape clone() {
        try {
            Shape clone = (Shape) super.clone();
            // TODO: copy mutable state here, so the clone can't change the internals of the original
            return clone;
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
